<extend name="Base:base"/>
<block name="header"></block>
<block name="footer">
    <script>
        $(document).ready(function () {
            $("#submit").on("click", function () {
            
                $.ajax({
                    url: "{$data['root']}/account/ajaxAuction/",
                    type: "POST",
                    dataType: "JSON",
                    data: {
                        name: $("#name").val(),
                        address: $("#address").val()
                    },
                    success: function (data) {
                        alert(data.message);
                        if (data.code == "1") {
                            if("{$data['url']}"!=""){
                                window.location.href = "{$data['url']}";
                            }else{
                                window.location.href = "{$data['root']}/";
                            }

                        }

                    }
                });
            });
        });
    </script>
</block>
<block name="main">
    <div class="ShareAnyContainer" style="font-size: 14px;">
        当前位置：<a href="{$data['root']}/" title="首页">首页</a>&nbsp;&nbsp;/&nbsp;&nbsp;<a
            href="{$data['root']}/account/auction/" title="竞拍信息">竞拍信息</a>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer">
        <div class="line"></div>
    </div>
    <div class="ShareAnySeparate"></div>
    <div class="ShareAnyContainer">
        <style>
            .form input{
                width:300px;
                padding:5px;
            }
            .form input:focus{
                border:1px solid #ff0000;
            }
        </style>
        <table style="width:100%;" border="0">
            <tr>
                <td valign="top" width="20%"><include file="Base:account" /></td>
                <td valign="top" width="5%">&nbsp;</td>
                <td valign="top" width="75%" style="line-height: 50px; text-align: center;" class="form">
                    <p style="text-align: left; font-size: 25px;">竞拍信息</p>
                    <p>姓名：<input type="text" id="name" value="{$data['user']['name']}"></p>

                    <p>地址：<input type="text" id="address" value="{$data['user']['address']}"></p>
                    <p>
                        <button id="submit" style="padding:10px 25px;">同意竞拍须知并修改</button>
                        &nbsp;<a target="_blank" href="{$data['root']}/auction/notice/" title="竞拍须知">竞拍须知</a></p>

                </td>
            </tr>
        </table>


    </div>
</block>